﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TmU220PrintHelperV2d0.Entity
{
    /// <summary>
    /// 打印任务的跟踪信息
    /// </summary>
    public class PrintTaskTraceInfoV2d0
    {
        public string TaskUid { get; set; }
        /// <summary>
        /// 任务的目标打印机名称
        /// </summary>
        public string TargetPrinter { get; set; }
        /// <summary>
        /// 任务下载时间
        /// </summary>
        public DateTime DownloadTime { get; set; }
        /// <summary>
        /// 实施打印的打印机名称
        /// </summary>
        public string ActPrinterName { get; set; }
        /// <summary>
        /// 打印流水号
        /// </summary>
        public string PrintNo { get; set; }
        /// <summary>
        /// 打印完成时间（打印成功，或者打印失败）
        /// </summary>
        public DateTime PrintFinishTime { get; set; }
        public PrintTaskTraceInfoV2d0(PrintTaskV2d0 printTask)
        {
            TaskUid = printTask.DataOfPrintTask.uid;
            TargetPrinter = printTask.DataOfPrintTask.printer;
            ActPrinterName = "";
            PrintNo = printTask.DataOfPrintTask.print_no.ToString();
            DownloadTime = DateTime.Now;
        }
    }
}
